package com.cans.factory.abstractfactory;

/**
 * 苹果手机 -抽象工厂实现
 *
 * @author cans
 * @date 2024/2/17
 **/
public class IPhoneFactoryImpl implements Factory {
    @Override
    public IPhone createPhone() {
        return new IPhone(createCpu());
    }

    @Override
    public Cpu createCpu() {
        return new A15Cpu();
    }
}
